package com.haibara.aiojjudgeservice.controller;

import com.haibara.aiojjudgeservice.service.JudgeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class JudgeController {
    @Resource
    private JudgeService judgeService;

    @GetMapping("/do")
    public void doJudge(@RequestParam("questionSubmitId") Long questionSubmitId){
        judgeService.doJudge(questionSubmitId);
    }
}
